<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">

	<!-- NavBar, Main menu -->
	<div id="navBar">
		<h:form>
			<p:growl id="messages" />

			<p:menubar>
			
				<p:menuitem value="Home" url="../pages/home.jsf" icon="ui-icon-home" />
				
				<p:submenu label="Cadastro" icon="ui-icon-document">
					<p:menuitem value="Aluno" 
								url="/pages/aluno.jsf" 
								icon="ui-icon-person" />
					<p:menuitem value="Responsável" 
								url="/pages/responsavel.jsf" 
								icon="ui-icon-person" />
				</p:submenu>
							
				<p:menuitem value="Caixa" url="../pages/caixa.jsf" icon="ui-icon-calculator" />

				<p:submenu label="Relatórios" icon="ui-icon-document">
					<p:menuitem value="Pagamentos" onclick="PF('paymentReportModal').show();" />
					<p:separator />
					<p:menuitem value="Quit" url="#" />
				</p:submenu>

				<p:menuitem value="Avaliação Física" url="#" icon="ui-icon-note" />

				<f:facet name="options">
					<h:outputLink value="#{facesContext.externalContext.requestContextPath}/j_spring_security_logout">
                    	<h:outputText value="Sair"/>
                	</h:outputLink>
				</f:facet>

			</p:menubar>
		</h:form>
	</div>
	<!-- navBar -->
	
	<!-- Includes to call the report for payment -->
	<ui:include src="../reports/paymentReportFilter.xhtml" />	

</ui:composition>
